<template>
  <div>
     <form >
        <p>用户名</p><input type="text"  name="username" v-model="form.username"> <br/>
        <p>密码</p><input type="text"  name="password" v-model="form.password"> <br/>
     </form>
   </div>
</template>
 
<script>
export default {
  name: "HmSubmit",
  data() {
    return {
      form:{
         username:'',
         password:'',
      }

    };
  },
  methods: {
    sonSubmit() {
     console.log(this.form.username, this.form.password);

    // 重置
    this.form.username = ''
    this.form.password = ''

    }
  }
};
</script>

<style scoped>
     
</style>